package com.ys.http.network;

import java.lang.reflect.ParameterizedType;

public class Type<T> {

    private java.lang.reflect.Type type;

    protected Type() {
        ParameterizedType parameterizedType = (ParameterizedType) getClass().getGenericSuperclass();
        if (parameterizedType != null) {
            type = parameterizedType.getActualTypeArguments()[0];
        }
    }

    public java.lang.reflect.Type getType() {
        return type;
    }
}
